package com.v.im.webservice.controller.user;

import com.v.im.commonmodule.utils.chat.RegisterResult;
import com.v.im.webservice.controller.base.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;



@Controller
public class UserRegisterController extends BaseController {


    /**
     * 用户注册
     *
     * @param name     用户名
     * @param password 密码
     * @param phone    手机
     * @return 结果
     */
    @ResponseBody
    @RequestMapping(value = "/register", method = RequestMethod.POST)
    public RegisterResult register(String name, String password, String phone) {
        return imUserService.registerUserInfo(name, password, phone);
    }



}